//
//  Button_FunViewController.m
//  Button Fun
//
//  Created by 厳 中男 on 10/08/14.
//  Copyright team-lab 2010. All rights reserved.
//

#import "Button_FunViewController.h"

@implementation Button_FunViewController
@synthesize statusText;

-(IBAction)buttonPressed:(id)sender{
	NSString *title =[sender titleForState:UIControlStateNormal];
	NSString *newTitle =[[NSString alloc] 
						 initWithFormat:@"%@ button pressed.",title];
	statusText.text = newTitle;
	[newTitle release];
}

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
	self.statusText = nil;
}


- (void)dealloc {
	[statusText release];
    [super dealloc];
}

@end
